﻿using SSAT.Forms;
using SSAT.Utils;

namespace SSAT.Commands
{
    internal sealed class MonitorCommand : CommandBase
    {
        private MainForm _mainForm;

        public MonitorCommand(MainForm mainForm)
        {
            Verification.CheckArgumentForNull(mainForm, "mainForm");
            _mainForm = mainForm;
        }

        public override void Execute()
        {
            if (_mainForm != null)
            {
                _mainForm.RunMonitor();
            }
        }
    }
}
